package com.baizw.cultivation.module.admin.mapper;

import com.baizw.cultivation.module.admin.entity.ResourceEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 资源管理接口
 *
 * @author : baizw
 * Date: 2018/3/7
 * Time: 21:49
 */
@Mapper
public interface ResourceMapper extends BaseMapper<ResourceEntity> {

    /**
     * 查询用户权限信息
     *
     * @param userId 用户ID
     * @return
     */
    List<ResourceEntity> listResource(@Param("userId") Long userId);
}
